import type { IParamsForList } from "@/api/system/runningStatusSetting/ruleDesc.ts";
export interface ITabItem {
  name: "desc" | "setting";
  label: string;
}

export type TabType = ITabItem["name"];

export type PageType = "add" | "edit" | "detail";

export interface IPropsTypeForDrawer {
  type: PageType;
  ruleId?: number;
}

export interface EmitsTypeForDrawer {
  (e: "close", isShowConform?: boolean): void;
}

export type PropsTypeForDesc = IPropsTypeForDrawer;

export interface IEmitsTypeForSettingList {
  (e: "toggle", val: boolean): void;
}

export type PropsTypeForSettingEdit = IPropsTypeForDrawer;

export interface IEmitsTypeForSettingEdit {
  (e: "close"): void;
}

export interface IPropsTypeForPoint {
  eqpId: string;
}

export interface IEmitsTypeForPoint {
  (e: "select", value): void;
  (e: "close"): void;
}

export type ParamsFromForDesc = Pick<IParamsForList, "className" | "ruleTypeName">;
